package com.akaovi.pojo;

/**
 * @author akaovi
 * @version 1.0
 * @description
 * @date 2022/11/7 14:10
 * @since 2022/11/7 14:10
 */
public class Employee {
    private String name;
    private int birth;

    public Employee() {
    }

    public Employee(String name, int birth) {
        this.name = name;
        this.birth = birth;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBirth() {
        return birth;
    }

    public void setBirth(int birth) {
        this.birth = birth;
    }

    public double getSalary(int month) {
        if (month == birth) {
            return 100;
        }
        return 0;
    }
}


